package com.sen.gulimall.product.feign;

import com.sen.common.utils.R;
import com.sen.gulimall.product.feign.fallback.SeckillFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Kisen
 * @email lqs0911@qq.com
 * @date 2023/2/2 11:27
 * @detail
 */
@FeignClient(value = "gulimall-seckill", fallback = SeckillFeignFallback.class)
public interface SeckillFeignService {

    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);

}
